Skip to content

(maint) Fix Rubocop #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 19, 2019
Merged

(maint) Fix Rubocop #203

merged 5 commits into from
Jun 19, 2019

Conversation

glennsarti
Copy link
Contributor

Many of the rubocop rules have changed names or are now redundant. This commit
updates the rubocop.yml to be correct for rubocop v0.57.2

Rubocop only expects CRLF line endings on Windows, however this project is LF.
This commit enforces LF as the line-ending no matter what OS.

This commit fixes most of the simple rubocop violations (indentation, whitespace
arrays of symbols) and adds a Rubocop TODO file for the remainder. Later
commits will fix the TODO items and the file can be removed.

Many of the rubocop rules have changed names or are now redundant.  This commit
updates the rubocop.yml to be correct for rubocop v0.57.2
Rubocop only expects CRLF line endings on Windows, however this project is LF.
This commit enforces LF as the line-ending no matter what OS.
This commit fixes most of the simple rubocop violations (indentation, whitespace
arrays of symbols) and adds a Rubocop TODO file for the remainder.  Later
commits will fix the TODO items and the file can be removed.
@glennsarti
Copy link
Contributor Author

Visual inspect shows no files have changed CRLF <-> LF

@glennsarti
Copy link
Contributor Author

95 files inspected, no offenses detected
The command "SPEC_OPTS="--format documentation" COVERAGE="yes" bundle exec rake $CHECK" exited with 0.

Good for merge

Copy link
Contributor

@scotje scotje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @glennsarti, I had started on this yesterday but got derailed onto other things.

I pushed a couple more commits to make the bundler environment more repeatable (mine was trying to use rubocop 0.71 and so failing again) and also ensure the rake rubocop task will actually fail in Travis when there are issues.

@scotje scotje merged commit a1c5c65 into puppetlabs:master Jun 19, 2019
@glennsarti glennsarti deleted the fix-rubocop branch July 17, 2019 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants